package cn.semcorp.zhuhaizj.rabbitmq;


import cn.hutool.core.lang.TypeReference;

import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.io.IOException;
import java.sql.Timestamp;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 消息队列监听
 */
@Component
//@RabbitListener(queues = RabbitMqConfiguration.DEMO_QUEUE)
public class RabbitMqConsumer {
    public static ObjectMapper objectMapper = new ObjectMapper();


    @RabbitHandler
    public void listenerQueue(String message) {
        System.out.println(message);
    }
}
